pp108 : SetDialogTitle() Method

SetDialogTitle() Method


This method sets the title of a dialog box after it is opened. A title is a combination of caption and description (caption-description).

Syntax


application.setDialogTitle(caption, description);

Parameters

Parameter

Description

caption

Required. Denotes the actual title if description is empty.

description

Optional. This is appended with the caption to form the title.


Return Value


It does not return any value.

Remarks


Use this method for applications that open as a dialog box.

Example


The following sample code sets the title asApplication1Dialog.

application.setDialogTitle("Application1Dialog");


The following sample code sets the title asApplication1Dialog - Description.

application.setDialogTitle("Application1Dialog" , "Description");